#if !defined(AFX_SETTINGTCPIPDLG_H__53D14027_54C1_49B3_BDAD_0E08D2538B60__INCLUDED_)
#define AFX_SETTINGTCPIPDLG_H__53D14027_54C1_49B3_BDAD_0E08D2538B60__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// SettingTCPIPDlg.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CSettingTCPIPDlg dialog
#include "Util/MinButton.h"
#include "Util/MinUtilExt.h"
#include "DataManager/CSystemData.h"
#include "OnLine/COnLine.h"

class CUVLightDoc;
class IOnLine;
class CSystemData;
class CModelData;
class CTCPIPLogData;

class CSettingTCPIPDlg : public CDialog
{
// Construction
private:

	BOOL m_flgConnect;
	IOnLine* m_lnkOnLine;
	CSystemData* m_lnkSystemData;
	CModelData* m_lnkModelData;

public:

	CString strEqid;
	CString strPortid;
	CString strOperid;
	CString strLine;
	UINT m_TimerID;

	void ButtonInitial();
	CSettingTCPIPDlg(CDMControlCenter* pDMCC, IOnLine* pOnLine, CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	//{{AFX_DATA(CSettingTCPIPDlg)
	enum { IDD = IDD_SETTING_TCP_IP };
	CMinButton m_bAgvOn;
	CMinButton m_bAgvOff;
	CMinButton m_bPortUnloading;
	CMinButton m_bPortLoading;
	CMinButton m_bBcrRead;
	CMinButton m_bReadToWork;
	CMinButton m_bWaferWorkStart;
	CMinButton m_bWaferWorkComplete;
	CMinButton m_bWorkComplete;
	CMinButton m_bAlarmOn;
	CMinButton m_bAlarmOff;
	CMinButton m_bExit;
	CMinButton m_bCheckLux;
	CMinButton m_bWaferLux;
	CMinButton m_bAlarm;
	CMinButton m_bRunStartLux;
	CMinButton m_bAGVCall;
	CString	m_eCommLog;
	CString	m_ServerStatus;
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CSettingTCPIPDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	CUVLightDoc* m_pDoc;
	// Generated message map functions
	//{{AFX_MSG(CSettingTCPIPDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnExit();
	afx_msg void OnAgvOnOk();
	afx_msg void SendMsg();
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnAgvOffOk();
	afx_msg void OnPortUnloadingOk();
	afx_msg void OnPortLoadingOk();
	afx_msg void OnReadyToWorkOk();
	afx_msg void OnWaferWorkStartOk();
	afx_msg void OnWaferWorkCompleteOk();
	afx_msg void OnWorkCompleteOk();
	afx_msg void OnAlarmOnOk();
	afx_msg void OnAlarmOffOk();
	afx_msg void OnRfidReadOk();
	afx_msg void OnCheckLux();
	afx_msg void OnWaferLux();
	afx_msg void OnRunStartLux();
	afx_msg void OnAlarm();
	afx_msg void OnAgvCall();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_SETTINGTCPIPDLG_H__53D14027_54C1_49B3_BDAD_0E08D2538B60__INCLUDED_)
